package com.bjsxt.livegoods.login.client.controller;

import com.bjsxt.livegoods.login.client.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
public class LoginController {
    @Autowired
    private LoginService loginService;
    @PostMapping
    @CrossOrigin
    public Map<String,Object> login(String username,String password){
        return loginService.login(username,password);
    }
}
